package utils.aria2;

import entity.ConfigFile;
import lombok.Data;
import utils.json.InitConfig;

/**
 * Aria2下载配置类
 */
@Data
public class Aria2Config {
    private String ServerHost;
    private String ServerPort;
    private String Token;
    ConfigFile config = InitConfig.getInstance().getConfig();

    private Aria2Config() {
        ServerHost = config.getAria2().getServerHost();
        ServerPort = config.getAria2().getServerPort();
        Token = config.getAria2().getToken();
    }

    private static Aria2Config instance = new Aria2Config();

    public static Aria2Config getInstance() {
        return instance;
    }
}
